//查看明细 approve.jsp
function viewApproveFunction(node) {
    var select = node.datagrid('getSelections');
    if (select&&select.length>0) {
        var options = {
            "width":980,"height":600,
            buttons: [{
                id: "verifyApplication",
                text: '审核通过',
                handler: function () {
                    parent.$.modalDialog.openner_treeGrid = node;//因为添加成功之后，需要刷新这个treeGrid，所以先预定义好
                }
            },{
                id: "notVerifyApplication",
                text: '审核不通过',
                handler: function () {
                    parent.$.modalDialog.openner_treeGrid =node;//因为添加成功之后，需要刷新这个treeGrid，所以先预定义好
                }
            },{
                text: '返回',
                handler: function () {
                    parent.$.modalDialog.handler.dialog('close');
                }
            }]}
        editFun('查看采购明细', '/purchase/applicationView.html?id=',node, options);
    } else {
        parent.$.messager.alert('提示', '请选择一条数据.', 'info');
    }
}